package phapp.model.data;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javacommon.base.BaseEntity;

/**
 * Title: t_curve_data 数据类 POJO Description: DAO层映射到数据类,页面封装数据映射到数据类 Copyright:
 * Copyright (c) 2012-10 Company:
 * 
 * @author you name
 * @version 1.0
 */

public class Curve extends BaseEntity
{

   // date formats

   // columns START
   /** dataId */
   private java.lang.Integer dataId;
   /** curveType */
   private java.lang.Integer curveType;
   /** dataDay */
   private java.lang.Integer dataDay;
   /** dataValue */
   private java.lang.Integer dataValue;

   private java.util.ArrayList idList;

   // columns END

   public Curve()
   {
   }

   public Curve(java.lang.Integer dataId)
   {
      this.dataId = dataId;
   }

   public void setId(java.lang.Integer value)
   {
      this.dataId = value;
   }

   public java.lang.Integer getId()
   {
      return this.dataId;
   }
   
   public void setDataId(java.lang.Integer value)
   {
      this.dataId = value;
   }

   public java.lang.Integer getDataId()
   {
      return this.dataId;
   }

   public void setCurveType(java.lang.Integer value)
   {
      this.curveType = value;
   }

   public java.lang.Integer getCurveType()
   {
      return this.curveType;
   }

   public void setDataDay(java.lang.Integer value)
   {
      this.dataDay = value;
   }

   public java.lang.Integer getDataDay()
   {
      return this.dataDay;
   }

   public void setDataValue(java.lang.Integer value)
   {
      this.dataValue = value;
   }

   public java.lang.Integer getDataValue()
   {
      return this.dataValue;
   }

   public java.util.ArrayList getIdList()
   {
      return idList;
   }

   public void setIdList(java.util.ArrayList idList)
   {
      this.idList = idList;
   }

   /** 手动增加属性后,toString,hashCode,equals都要修改 */
   public String toString()
   {
      return new ToStringBuilder(this).append("DataId", getDataId()).append("CurveType", getCurveType()).append("DataDay", getDataDay()).append("DataValue", getDataValue()).toString();
   }

   public int hashCode()
   {
      return new HashCodeBuilder().append(getDataId()).append(getCurveType()).append(getDataDay()).append(getDataValue()).toHashCode();
   }

   public boolean equals(Object obj)
   {
      if (obj instanceof Curve == false) return false;
      if (this == obj) return true;
      Curve other = (Curve) obj;
      return new EqualsBuilder().append(getDataId(), other.getDataId()).append(getCurveType(), other.getCurveType()).append(getDataDay(), other.getDataDay()).append(getDataValue(), other.getDataValue()).isEquals();
   }
}
